package com.inool.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.inool.model.Grade;
import com.inool.model.dto.GradeDto;

import java.util.List;

public interface GradeService extends IService<Grade> {
    Grade addGrade(Grade grade);
    Grade updateGrade(Long id, Grade grade);
    void deleteGrade(Integer id);
    boolean saveOrUpdateGrade(Grade grade);
    Grade getGradeById(Integer id);
    List<Grade> getAllGrades();
    List<Grade> getGradesByStudentId(Integer studentId);
    List<Grade> getGradesByCourseId(Integer courseId);
    Page<GradeDto> pageGrade(long current, long size, String studentName ,String courseName);

    Page<GradeDto> pageStudentGrade(long current, long size,String studentNumber);
}    